package com.love.marriage.userMembershipRewardInfo.mapper;

import com.love.marriage.userMembershipRewardInfo.entity.UserMembershipRewardInfo;
import com.love.marriage.userMembershipRewardInfo.vo.UserMembershipRewardInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import com.love.marriage.common.interfaces.permission.DataPermission;

/**
 * description:  用户会员悬赏表 mapper
 * author:       alex
 * createDate:   2025-01-25 11:20:43
 * version:      1.0.0
 */
@Mapper
public interface UserMembershipRewardInfoMapper extends BaseMapper<UserMembershipRewardInfo> {

    @DataPermission(table = "user_membership_reward_info_t")
    Page<UserMembershipRewardInfoVo> getPage(Page<UserMembershipRewardInfoVo> page, @Param("userMembershipRewardInfoVo") UserMembershipRewardInfoVo userMembershipRewardInfoVo);

    UserMembershipRewardInfoVo queryUserMembershipRewardInfo(@Param("id") Long id);

    UserMembershipRewardInfoVo queryUserMembershipRewardInfoVo(@Param("userMembershipRewardInfoVo") UserMembershipRewardInfo userMembershipRewardInfo);
}
